<?php
/**
 * +-------------------------------------------------------------
 * |Caption:
 * +-------------------------------------------------------------
 * |Author: Lenny
 * +-------------------------------------------------------------
 * |Email:  1685964109@qq.com
 * +-------------------------------------------------------------
 * |Date:   2024/7/3 下午3:09
 * +-------------------------------------------------------------
 */

namespace app\admin\controller;

use app\common\controller\AdminController;
use think\App;
use app\admin\service\annotation\ControllerAnnotation;
use app\admin\model\Project as ModelProject;
use app\admin\validate\ProjectValidate;

/**
 * @ControllerAnnotation (title="项目管理")
 */
class Project extends AdminController
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->model          = new ModelProject();
        $this->validateClass  = ProjectValidate::class;
        $this->relationSearch = true;
        $this->joinTable      = 'cate';
        $this->sort           = ['sort' => 'desc', 'id' => 'desc'];
    }
}